import request from '@/router/axios';

export const getToParameterList = () => {
  return request({
    url: '/api/smart-xapply/appraise/appraiseParameter/getToParameterList',
    method: 'get',
    
  })
}

export const getDetail = (id) => {
  return request({
    url: '/api/smart-xapply/appraise/appraiseParameter/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const appraiseSave = (id,calendar,parameterId) => {
  return request({
    url: '/api/smart-xapply/appraise/appraiseCalendar/submit',
    method: 'post',
    params: {
      id,
      calendar,
      parameterId
    }
  })
}



export const getToNowCalendarList = (day) => {
  return request({
    url: '/api/smart-xapply/appraise/appraiseCalendar/getToNowCalendarList',
    method: 'get',
    params: {
      day
    }
  })
}


export const getToParameter = (day) => {
  return request({
    url: '/api/smart-xapply/appraise/appraiseCalendar/getToParameter',
    method: 'get',
    params: {
      day
    }
  })
}